﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ModulesPage.Master" AutoEventWireup="true" CodeBehind="RoomUpdateManagement.aspx.cs" Inherits="SwenAssignment3.RoomAvailabilityCumBookingModule.RoomCheckOut" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        /*Room Style*/
        .VacantRoom
        {
            background: url(/Pictures/AvailableRoom.png) no-repeat;
            height: 102px;
            width: 101px;
            float:left;
        }

            .VacantRoom:link
            {
                padding-top:25px;
                text-align:center;
            }

        .OccupiedRoom
        {
            background:url(/Pictures/NotAvailableRoom.png) no-repeat;
            height: 102px;
            width: 101px;
            float:left;
        }

            .OccupiedRoom:link
            {
                padding-top:25px;
                text-align:center;
            }


        .SFCRoom
        {
            background:url(/Pictures/SFCRoom.png) no-repeat;
            height: 102px;
            width: 101px;
            float:left;
        }

            .SFCRoom:link
            {
                padding-top:25px;
                text-align:center;
            }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:DataList ID="dlRoomList" runat="server" CellSpacing="5" RepeatColumns="5" RepeatDirection="Horizontal" OnItemCommand="dlRoomList_ItemCommand" OnItemDataBound="dlRoomList_ItemDataBound">
                <ItemTemplate>
                    <asp:LinkButton ID="RoomButton" CssClass="VacantRoom" runat="server" Text='<%# Eval("RoomNo") %>' CommandName="RoomButtonClick"></asp:LinkButton>
                    <asp:HiddenField ID="RoomStatus" runat="server" Value='<%# Eval("RoomStatus") %>' />
                </ItemTemplate>
            </asp:DataList>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
